
#include <apvp.pb.h>
#include "PlatformProperty.h"

TRANSMIT_WRITE_PROPERTY(SetTiAndDate,proto::ipcp::SetTiAndDate) {
    builder
        .area(VehicleArea::GLOBAL)
        .immutableStatus(PropertyStatus::Active)
        .onSetProperty([](const proto::ipcp::SetTiAndDate& value) {

                ecarx::transfer::SetTiAndDate structObj;
                structObj.setTiAndDateDateOrTi=(uint8_t)value.settianddatedateorti();
                structObj.setTiAndDateDay=(uint8_t)value.settianddateday();
                structObj.setTiAndDateHour=(uint8_t)value.settianddatehour();
                structObj.setTiAndDateMinute=(uint8_t)value.settianddateminute();
                structObj.setTiAndDateMonth=(uint8_t)value.settianddatemonth();
                structObj.setTiAndDateSecond=(uint8_t)value.settianddatesecond();
                structObj.setTiAndDateYear=(uint8_t)value.settianddateyear();       
                SIGNAL.setSetTiAndDate(structObj);

        });
}
